package com.crm.crm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.crm.crm.domain.Clue;
import com.crm.crm.domain.FalseClue;
import com.crm.crm.domain.CluePool;
import com.crm.crm.domain.RecordOne;
import com.crm.crm.domain.dto.AssignmentDto;
import com.crm.crm.domain.dto.PageQueryParams;
import com.crm.crm.domain.dto.business.FalseCluesReportDto;
import com.crm.crm.domain.dto.business.RecordDto;
import com.crm.crm.domain.vo.ClueVo;
import com.crm.crm.domain.vo.PageResult;
import com.crm.crm.domain.vo.business.result.TableDataInfo;
import com.crm.crm.domain.vo.contract.ContractReportResponse;

import java.util.List;

public interface ClueService extends IService<Clue> {
    String add(Clue clue);

    PageResult<Clue> pageQuery(PageQueryParams pageQueryParams);

    ClueVo getById(Integer id);

    PageResult<RecordOne> getRecordList(Integer id);

    void saveClues(List<Clue> resultDataList);

    void addRecord(RecordDto recordDto);

    String assignment(AssignmentDto assignmentDto);

    PageResult<CluePool> poolQuery(PageQueryParams pageQueryParams);

    String gain(AssignmentDto gain);

    void falseClue(FalseCluesReportDto falseCluesReport);

    void changeBusiness(Integer id);

    //统计新增线索和线索总数
    ContractReportResponse cluesStatistics(String beginCreateTime, String endCreateTime);

    Long selectOwner(String userName);
}
